package com.titanrise.crm.handler;

import com.titanrise.crm.domain.model.SysLoginLog;

import java.util.ArrayList;
import java.util.List;

public class SharedData {
    private volatile int currentPage = 1; // 当前页
    private volatile boolean isRunning = true; // 是否继续运行
    private List<SysLoginLog> sysLoginLogs = new ArrayList<>(); // 当前分页数据

    // Getters and Setters
    public synchronized int getCurrentPage() {
        return currentPage;
    }

    public synchronized void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public boolean isRunning() {
        return isRunning;
    }

    public void stop() {
        this.isRunning = false;
    }

    public List<SysLoginLog> getSysLoginLogs() {
        return sysLoginLogs;
    }

    public void setSysLoginLogs(List<SysLoginLog> sysLoginLogs) {
        this.sysLoginLogs = sysLoginLogs;
    }
}
